package com.study.spmongodb.wwj.thread2.char18;

/**
 * @author MI
 * @version 1.0
 * @date 2020/12/9 22:06
 */
public class DisplayStringRequest extends MethodRequest {

    private final String text;

    public DisplayStringRequest(Servant servant, final String text) {
        super(servant, null);
        this.text = text;
    }

    @Override
    public void execute() {
        this.servant.displayString(text);
    }
}
